package com.caltco.cargo.ops.modules.sys.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
public class SysUserVo {

    @NotBlank(message="用户名不能为空")
    @Schema(description = "用户名")
    @ExcelProperty(value = "用户名")
    private String username;

    @Schema(description = "中文姓名")
    @ExcelProperty(value = "中文姓名")
    @ColumnWidth(20)
    private String chineseName;

    @Schema(description = "邮箱")
    @ExcelProperty(value = "邮箱")
    @ColumnWidth(20)
    @NotBlank(message="邮箱不能为空")
    @Email(message="邮箱格式不正确")
    private String email;

    @Schema(description = "手机号")
    @ExcelProperty(value = "手机号")
    @ColumnWidth(20)
    private String mobile;

    @Schema(description = "性别(女,男)")
    @ExcelProperty(value = "性别(女,男)")
    @ColumnWidth(20)
    private String sex;

    @Schema(description = "年龄")
    @ExcelProperty(value = "年龄")
    private String age;

    @Schema(description = "所属部门")
    @ExcelProperty(value = "所属部门(部门编码)")
    @ColumnWidth(50)
    private String levelMark;

    @Schema(description = "角色岗位")
    @ExcelProperty(value = "角色岗位(角色编码，多个请已#隔开，例如：CQ#VV )" )
    @ColumnWidth(80)
    private String roleCodes;
}
